package com.geepi.servlet;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class AccountIsExistServlet extends HttpServlet {
	/**
	* 
	*/
	private static final long serialVersionUID = 1L;

	protected void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		System.out.println("AccountIsExistServlet............start");
		// 阻止缓存
		response.setContentType("text/xml");
		response.setHeader("Cache-Control", "no-store"); // HTTP1.1
		response.setHeader("Pragma", "no-cache"); // HTTP1.0
		response.setDateHeader("Expires", 0); // prevents catching at proxy
												// server

		PrintWriter out = response.getWriter();

		// js传汉字进行转码避免汉字候现乱码
		String account = request.getParameter("account");
		// UserInfoBO userInfoBO = new UserInfoBO();
		// boolean b = userInfoBO.accountIsExist(account);
		// if (b) {
		// out.print("用户名已存请重新输入");
		// }

		out.print("用户名已存请重新输入");
		System.out.println("AccountIsExistServlet............end");

	}
}
